<style type="text/css">
<!--
.style1 {
	font-family: Tahoma, Verdana, Arial;
	font-size: 11px;
	font-weight: bold;
	color: #FFFFFF;
}
-->
</style>
<script language="javascript">
function checkform()
{
	obj = document.getElementById('frmURegister');
	if ( obj.txtUsername.value == "" )
	{
		alert('Chưa nhập vào tên đăng nhập !');
		obj.txtUsername.focus();
		return false;
	}
	if ( obj.txtEmail.value == "" )
	{
		alert("Chưa nhập vào địa chỉ Email ");
		obj.txtEmail.focus();
		return false;
	}
	if ( obj.txtPwd.value == "" )
	{
		alert("Chưa nhập vào mật khẩu !");
		obj.txtPwd.focus();
		return false;
	}
	else if ( obj.txtRPwd.value == "" )
	{
		alert("Chưa nhập vào mật khẩu lần 2");
		obj.txtRPwd.focus();
		return false;
	}
	
	if ( obj.txtPwd.value != obj.txtRPwd.value )
	{
		alert("Mật khẩu nhập vào 2 lần không giống nhau !");
		obj.txtRPwd.focus();
		return false;
	}
	
	return true;
}
</script>
<form id="frmURegister" name="frmURegister" method="post" action="modules.php?p={_U_REGISTER_FRMACTION}" onsubmit="return checkform()">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="border: 1px solid #336699">
    <tr>
      <td height="25" valign="middle" bgcolor="#336699">&nbsp;<span class="style1">{_U_REGISTER_TITLE}</span></td>
    </tr>
    <tr>
      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="right">{_U_REGISTER_USERNAME}&nbsp;</td>
            <td align="left"><input class="vsinput" name="txtUsername" type="text" id="txt" size="50" maxlength="15" /></td>
          </tr>
          <tr>
            <td align="right">{_U_REGISTER_EMAIL}&nbsp;</td>
            <td align="left"><input class="vsinput" name="txtEmail" type="text" id="txtEmail" size="50" maxlength="50" /></td>
          </tr>
          <tr>
            <td align="right">{_U_REGISTER_PASSWORD}&nbsp; </td>
            <td align="left"><input class="vsinput" name="txtPwd" type="password" id="txtPwd" size="50" maxlength="15" /></td>
          </tr>
          <tr>
            <td align="right">{_U_REGISTER_CONFIRMPASSWORD}&nbsp;</td>
            <td align="left"><input class="vsinput" name="txtRPwd" type="password" id="txtRPwd" size="50" maxlength="50" /></td>
          </tr>
          <tr>
            <td colspan="2" align="middle">{_U_REGISTER_GFX}</td>
          </tr>
          <tr>
            <td align="right">{_U_REGISTER_GFX_TEXT}&nbsp;</td>
            <td align="left"><input class="vsinput" name="gfx" type="text" id="gfx" size="50" maxlength="50" /><input name="gfx_check" type="hidden" value="{_U_REGISTER_GFX_HIDDEN}" /></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td height="40" align="right" bgcolor="#000066"><input name="cmdURegister" type="submit" value="{_U_REGISTER_CAPTION_BTN}" />
        &nbsp;</td>
    </tr>
  </table>
</form>
